using System;
using System.IO;
using System.Text;

namespace Leet
{
    class P1202Input
    {
        public static string ReadV1()
        {
            var path = "input/1202/input.txt";
            FileStream file = new FileStream(path, FileMode.Open);
            StreamReader sr = new StreamReader(file, Encoding.Default);

            var str = sr.ReadToEnd();
            var arr = str.Split('\"');
            file.Close();

            return arr[0];
        }

        public static string ReadV2()
        {
            var path = "input/1202/input.txt";
            FileStream file = new FileStream(path, FileMode.Open);
            StreamReader sr = new StreamReader(file, Encoding.Default);

            var str = sr.ReadToEnd();
            var arr = str.Split('\"');
            var value = arr[1];
            var index = value.IndexOf('[');
            value = value.Substring(index + 1);
            value = value.Substring(0, value.Length - 1);
            file.Close();

            return value;
        }
    }
}